<template>
<div class="login">
  <h2>登录页面</h2>
  <button v-on:click="loginClick">登录</button>
</div>
</template>

<script setup>
import {useRouter} from 'vue-router'
const router=useRouter()
function loginClick(){
  console.log("点击了登录")
  localStorage.setItem('token','dingjie')
  router.push('/order')
}
</script>

<style scoped>

</style>